package org.feign.test.service;

import org.feign.test.fallback.FeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author LHB
 * @date 2019/10/15 16:13
 */
@FeignClient(name = "client2",fallback = FeignFallBack.class)
public interface FeignService {
    @RequestMapping(value = "/get", method = RequestMethod.GET)
     String get();
    @RequestMapping(value = "/getUser")
     String getUser(@RequestParam(name = "name") String name);
}
